class BeanInformation {
  int currentPage;
  int totalPage;
  int pageSize;
  List<ListItemBean> list;

  BeanInformation({this.currentPage, this.totalPage, this.pageSize, this.list});

  BeanInformation.fromJson(Map<String, dynamic> json) {    
    this.currentPage = json['pageNum'];
    this.totalPage = json['pages'];
    this.pageSize = json['size'];
    this.list = (json['list'] as List)!=null?(json['list'] as List).map((i) => ListItemBean.fromJson(i)).toList():null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['currentPage'] = this.currentPage;
    data['totalPage'] = this.totalPage;
    data['pageSize'] = this.pageSize;
    data['list'] = this.list != null?this.list.map((i) => i.toJson()).toList():null;
    return data;
  }

}

class ListItemBean {
  String appRouteUrl;
  String title;
  String iconUrl;
  String time;

  ListItemBean({this.appRouteUrl, this.title, this.iconUrl, this.time});

  ListItemBean.fromJson(Map<String, dynamic> json) {
    this.appRouteUrl = json['appRouteUrl'];
    this.title = json['title'];
    this.iconUrl = json['coverImageUrl'];
    this.time = json['pushDate'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['appRouteUrl'] = this.appRouteUrl;
    data['title'] = this.title;
    data['iconUrl'] = this.iconUrl;
    data['time'] = this.time;
    return data;
  }
}
